//package com.molyfun.core.config;
//
//import com.molyfun.core.interceptor.AuthInterceptor;
//import com.molyfun.core.resolvers.CurrentUserMethodArgumentResolver;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.method.support.HandlerMethodArgumentResolver;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
//import java.util.List;
//
///**
// * 配置类，增加自定义拦截器和解析器
// * @see com.scienjus.authorization.resolvers.CurrentUserMethodArgumentResolver
// * @see com.scienjus.authorization.interceptor.AuthorizationInterceptor
// * @author ScienJus
// * @date 2015/7/30.
// */
//@Configuration
//public class MvcConfig extends WebMvcConfigurerAdapter {
//
//    @Autowired
//    private AuthInterceptor authorizationInterceptor;
//
//    @Autowired
//    private CurrentUserMethodArgumentResolver currentUserMethodArgumentResolver;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(authorizationInterceptor);
//    }
//
//    @Override
//    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
//        argumentResolvers.add(currentUserMethodArgumentResolver);
//    }
//}
